/*
 *  Jar.cpp
 *  lab3
 *
 *  Created by Fredrik Gustafsson on 2010-11-26.
 *  Copyright 2010 KTH. All rights reserved.
 *
 */

#include "Jar.h"

using namespace wok2;

std::string Jar::type() const{
	return "jar";
}

Jar::Jar(const Jar& j) : Item(j.name, j.description), contains(j.contains) {}

Jar::Jar(std::string name, std::string desc, Item* item) : Item(name, desc), contains(item) {}

std::ostream& Jar::write_nongeneric(std::ostream& os) const{
	os << contains->name << std::endl;
	return os;
}